-- GENERATED SPELL FOR [Defias Insurgent] --


function spell0_1715(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(9128,pUnit)
pUnit:RegisterEvent('Sorts_1715', 568, 1)
end

function spell1_1715(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_1715', 30252, 1)
end

function Sorts_1715(pUnit, Event)
local choix_sorts_1715 = math.random(0, 1)
if choix_sorts_1715 == 0 then
pUnit:RegisterEvent('spell0_1715', 1, 1)
end
if choix_sorts_1715 == 1 then
pUnit:RegisterEvent('spell1_1715', 1, 1)
end
end

function mob1715_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1715', math.random(1500, 3000), 1)
end

function mob1715_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1715_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1715_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1715, 1, 'mob1715_Action')
RegisterUnitEvent(1715, 2, 'mob1715_Leave')
RegisterUnitEvent(1715, 3, 'mob1715_Kill')
RegisterUnitEvent(1715, 4, 'mob1715_Die')
